
package requests

import (
	"github.com/goravel/framework/contracts/http"
	"github.com/goravel/framework/contracts/validation"
)

type SystemFileInfoRequest struct {

	Name string `json:"name" form:"name"`

	Path string `json:"path" form:"path"`

	FullPath string `json:"full_path" form:"full_path"`

	Type string `json:"type" form:"type"`

	CreateTime string `json:"create_time" form:"create_time"`

	UpdateTime string `json:"update_time" form:"update_time"`

	Mark string `json:"mark" form:"mark"`

}

func (r *SystemFileInfoRequest) Authorize(ctx http.Context) error {
	return nil
}

func (r *SystemFileInfoRequest) Rules(ctx http.Context) map[string]string {
	return map[string]string{

		"name": "required",

		"path": "required",

		"full_path": "required",

		"type": "required",

		"create_time": "required",

		"update_time": "required",

		"mark": "required",

	}
}

func (r *SystemFileInfoRequest) Messages(ctx http.Context) map[string]string {
	return map[string]string{}
}

func (r *SystemFileInfoRequest) Attributes(ctx http.Context) map[string]string {
	return map[string]string{}
}

func (r *SystemFileInfoRequest) PrepareForValidation(ctx http.Context, data validation.Data) error {
	return nil
}
